<?php
namespace app\index\validate;
use think\Validate;

class Message extends Validate{
    protected $rule = [
        'content'  =>  'require'
    ];

    protected $message  =   [
        'content.require' => '留言内容必须要填 '
    ];
}